Token Metadata by Id
Queries token metadata information for the specified token Id.
query Token($tokenId: String!) {
token {
token_metadata_by_id(token_id: $tokenId) {
coinDecimal
displayName
tokenId
description
image
price
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token($tokenId: String!) {\n token {\n token_metadata_by_id(token_id: $tokenId) {\n coinDecimal\n displayName\n tokenId\n description\n image\n price\n }\n }\n}","variables":{"tokenId":"nibi"}}'
Arguments
- limit (Int): Optional limit to the number of results to return.
- offset (Int): Optional number of tokens to skip before starting to return the result set. Used for pagination.
Return Fields
Field | Type | Description |
---|---|---|
coinDecimal | Int | The number of decimal places for the token. |
displayName | String | The display name of the token. |
tokenId | String | The unique identifier of the token. |
description | String | A brief description of the token. |
image | String | URL to an image representing the token. |
price | Float | The current price of the token in USD. |